package com.qst.crop.demo.service;

import com.qst.crop.demo.entity.UserProduct;
import com.qst.crop.demo.mapper.BrowseMapper;
import com.qst.crop.demo.mapper.UserProMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrowseService {
    @Autowired
    BrowseMapper browseMapper;

    public Integer add(String userEmail, long productId){
        return browseMapper.add(userEmail, productId);
    }

    public List<Long> getProList(String userEmail){
        return browseMapper.getProList(userEmail);
    }

    public Integer del(String userEmail, long productId){
        return browseMapper.del(userEmail, productId);
    }

//    public List<UserProduct> ifExist(String userEmail, long productId){
//        return userProMapper.ifExist(userEmail, productId);
}
